using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class SettingPanel :BasePanel
{
    private static string name = "SettingPanel";
    private static string path = "UI/SettingPanel";
    public static readonly UIType uIType = new UIType(name, path);

    public SettingPanel() : base(uIType)
    {

    }

    public override void OnStart()
    {
        base.OnStart();
        UIMethod.GetInstance().GetOrAddComponentInChild<Button>(ActiveObj, "Back").onClick.AddListener(Back);
    }
    private void Back()
    {
        GameRoot.GetInstance().UIManager_Root.Pop(false);
    }

    public override void OnEnable()
    {
        base.OnEnable();

    }

    public override void OnDisable()
    {
        base.OnDisable();
    }

    public override void OnDestroy()
    {
        base.OnDestroy();
    }
}
